home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3rect.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.1 KB  |  93 lines

  1.  
  2. // JavaScript wrapper for r3rect.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_RECT_H = 1;
  7. include("oops/r3vector.js")
  8. include("real/objects/r3prim.js")
  9.  
  10.  
  11. var R3CLID_RECT = 151;
  12.  
  13.  
  14.  
  15.  
  16. R3RECTA_P0 = 151501;
  17. function SetR3RECTA_P0(value) {
  18.   R3Set(this.r3obj, R3RECTA_P0, value, R3TID_VECTOR, 0); 
  19. }
  20.  
  21. function GetR3RECTA_P0() {
  22.   return R3Get(this.r3obj, R3RECTA_P0, R3TID_VECTOR, 0); 
  23. }
  24.  
  25. R3RECTA_P1 = 151502;
  26. function SetR3RECTA_P1(value) {
  27.   R3Set(this.r3obj, R3RECTA_P1, value, R3TID_VECTOR, 0); 
  28. }
  29.  
  30. function GetR3RECTA_P1() {
  31.   return R3Get(this.r3obj, R3RECTA_P1, R3TID_VECTOR, 0); 
  32. }
  33.  
  34. R3RECTA_P2 = 151503;
  35. function SetR3RECTA_P2(value) {
  36.   R3Set(this.r3obj, R3RECTA_P2, value, R3TID_VECTOR, 0); 
  37. }
  38.  
  39. function GetR3RECTA_P2() {
  40.   return R3Get(this.r3obj, R3RECTA_P2, R3TID_VECTOR, 0); 
  41. }
  42.  
  43. R3RECTA_Width = 151504;
  44. function SetR3RECTA_Width(value) {
  45.   R3Set(this.r3obj, R3RECTA_Width, value, R3TID_FLOAT, 0); 
  46. }
  47.  
  48. function GetR3RECTA_Width() {
  49.   return R3Get(this.r3obj, R3RECTA_Width, R3TID_FLOAT, 0); 
  50. }
  51.  
  52. R3RECTA_Height = 151505;
  53. function SetR3RECTA_Height(value) {
  54.   R3Set(this.r3obj, R3RECTA_Height, value, R3TID_FLOAT, 0); 
  55. }
  56.  
  57. function GetR3RECTA_Height() {
  58.   return R3Get(this.r3obj, R3RECTA_Height, R3TID_FLOAT, 0); 
  59. }
  60.  
  61. R3RECTA_Infinite = 151506;
  62. function SetR3RECTA_Infinite(value) {
  63.   R3Set(this.r3obj, R3RECTA_Infinite, value, R3TID_INTEGER, 0); 
  64. }
  65.  
  66. function GetR3RECTA_Infinite() {
  67.   return R3Get(this.r3obj, R3RECTA_Infinite, R3TID_INTEGER, 0); 
  68. }
  69.  
  70.  
  71.  
  72. function r3Rect () { 
  73.    this.base = r3God;
  74.    if(arguments.length) {
  75.       this.base(R3CLID_RECT, arguments);
  76.    }
  77.    // Attributes
  78.    this.GetP0=GetR3RECTA_P0;
  79.    this.SetP0=SetR3RECTA_P0;
  80.    this.GetP1=GetR3RECTA_P1;
  81.    this.SetP1=SetR3RECTA_P1;
  82.    this.GetP2=GetR3RECTA_P2;
  83.    this.SetP2=SetR3RECTA_P2;
  84.    this.GetWidth=GetR3RECTA_Width;
  85.    this.SetWidth=SetR3RECTA_Width;
  86.    this.GetHeight=GetR3RECTA_Height;
  87.    this.SetHeight=SetR3RECTA_Height;
  88.    this.GetInfinite=GetR3RECTA_Infinite;
  89.    this.SetInfinite=SetR3RECTA_Infinite;
  90. }
  91.  
  92. r3Rect.prototype=new r3Primitive;
  93. // r3rect.h_H